//base
import Taro, { Component } from '@tarojs/taro'
import { View, Text, Image } from '@tarojs/components'
//less
import './index.less'

class JobSingle extends Component {
  componentWillMount() {
    //onLoad
  }

  componentDidMount() {
    //onready
  }

  componentDidShow() {
    //onshow
  }

  componentDidHide() {
    //onhide
  }

  componentWillUnmount() {
    //onUnload
  }

  delay(time = 0) {
    return new Promise(resolve => {
      setTimeout(() => {
        resolve()
      }, time)
    })
  }

  render() {
    return (
      <View className="JobSingle_id53152">
        {this.props.dataSource.map(() => {
          return (
            <View className="singlels">
              <View className="singletitle">
                <View className="titleleft">
                  <Text>UI设计师-运营方向</Text>
                </View>
                <Image
                  className="titleright"
                  src="https://imagesize.hrwork.com/sp/files/3958dac1-53d9-4696-80bc-185e58c59206.png"
                />
              </View>
              <View className="contentwrap">
                <View className="contentleft">
                  {this.props.dataSource.map(() => {
                    return <View className="contentleftsingle">A轮了</View>
                  })}
                </View>
                <View className="contentright">
                  <View className="price">5000</View>
                  <View className="priceunit">元/月</View>
                </View>
              </View>
            </View>
          )
        })}
      </View>
    )
  }
}

export default JobSingle
